package com.jobsleaf.viewsorter.tree;

import java.util.ArrayList;
import java.util.List;

import com.jobsleaf.tree.domain.Gsm;
import com.jobsleaf.tree.domain.Lac;
import com.jobsleaf.tree.domain.Rnc;
import com.jobsleaf.tree.domain.Subnetwork;
import com.jobsleaf.tree.domain.Utran;

public class SubnetworkUtility {

	private static List<Subnetwork> mParentList = new ArrayList<Subnetwork>(); 
	public static List<Object> getInput() 
	{
		List <Object>input = new ArrayList<Object>();
		
		Subnetwork sn1 = new Subnetwork();
	//	Subnetwork sn2 = new Subnetwork();
		
	//	Gsm gsm2 = new Gsm(sn2);
		Gsm gsm = new Gsm(sn1);
		Lac lac = new Lac(gsm);
	//	Lac lac2 = new Lac(gsm2);
		Lac lac1 = new Lac(gsm);
		Lac lac3 = new Lac(gsm);
		Lac lac4 = new Lac(gsm);
		Lac lac5 = new Lac(gsm);
		Lac lac6 = new Lac(gsm);
		Lac lac7 = new Lac(gsm);
		
		lac1.setSamledata("ddd2");
		lac3.setSamledata("ddd3");
		lac4.setSamledata("ddd4");
		lac5.setSamledata("ddd5");
		lac6.setSamledata("ddd6");
		lac7.setSamledata("ddd7");
		
		Utran utran = new Utran(sn1);
		Rnc rn = new Rnc(utran);
		Rnc rn1 = new Rnc(utran);
		Rnc rn2 = new Rnc(utran);
		Rnc rn3 = new Rnc(utran);
		Rnc rn4 = new Rnc(utran);
		Rnc rn5 = new Rnc(utran);
		
		mParentList.add(sn1);
		//mParentList.add(sn2);
		
		sn1.setName("Subnetwork_1");
		gsm.setName("Subnetwork_1.Gsm");
		lac.setName("lacid=1");
		lac1.setName("lacid=2");;
		lac3.setName("lacid=11");
		lac4.setName("lacid=14");
		lac5.setName("lacid=16");
		lac6.setName("lacid=4");
		lac7.setName("lacid=17");
		
		utran.setName("Subnetwork_1.Utran");
		rn.setName("rncid=1");
		rn1.setName("rncid=4");
		rn2.setName("rncid=3");
		rn3.setName("rncid=9567");
		rn4.setName("rncid=54");
		rn5.setName("rncid=694");
		
		
		
		gsm.addLAC(lac);
		gsm.addLAC(lac1);
		gsm.addLAC(lac3);
		gsm.addLAC(lac4);
		gsm.addLAC(lac5);
		gsm.addLAC(lac6);
		gsm.addLAC(lac7);
		
		
		utran.addRNC(rn);;
		utran.addRNC(rn1);;
		utran.addRNC(rn2);;
		utran.addRNC(rn3);;
		utran.addRNC(rn4);;
		utran.addRNC(rn5);;
		
		
		sn1.addGsm(gsm);
		sn1.addUtran(utran);
//		sn2.setName("Subnetwork_2");
//		gsm2.setName("Subnetwork_2.Gsm");
//		lac2.setName("Subnetwork_2.Lac");
//		gsm2.addLAC(lac2);
//		sn2.addGsm(gsm2);
		input.add(sn1);
		//input.add(sn2);
		return input;
	}
	public static List<Subnetwork> getParentList()
	{
		return mParentList;
	}
}
